﻿'use strict';
app.controller('PackDetailController', function ($rootScope, $scope, $state, $localStorage, $stateParams, ManagerPackFactory) {

    $scope.Pack = {},
    GetPackDetail($stateParams.Id);
    function GetPackDetail(Id) {
        ManagerPackFactory.GetPackDetail(Id).then(function (response) {
            $scope.Pack = response.data.Result;
        }, function (error) {
            $scope.status = 'Unable to load pack detail data: ' + error.message;
        });
    }

})